<title>积分商城商品>添加</title>
<link rel="stylesheet" href="../assets/css/bootstrap-multiselect.css"/>
<link rel="stylesheet" href="../assets/css/bootstrap-tagsinput.css"/>
<!-- ajax layout which only needs content area -->
<div class="space-8"></div>
<div class="row">
  <div class="col-xs-4">
    <div class="form-group">
      <div class="uploader-container">
        <!--头部，相册选择和格式选择-->
        <div class="uploader">
          <div class="queueList center center-block">
           <p>当前图片真实尺寸：<span id="Imgsize">0*0</span></p>
            <div  class="placeholder dndArea">
              <img class="mainImg" src=" " alt="">
            </div>
            <div class="webuploader-pick" id="webuploader-pick">点击选择主图</div>
          </div>
        </div>
      </div>
    </div>
  </div>

  <div class="col-xs-6">

    <form class="form-horizontal" role="form" id="editForm">
      <div class="space-8"></div>
      <!-- #section:elements.form -->

      <div class="form-group">
        <label class="col-sm-3 control-label no-padding-right" for="classifyType">商品类别</label>
        <div class="col-sm-6">
          <select class="col-xs-12 col-sm-12" id="classifyType">
          </select>
        </div>
        <label class="col-sm-3 error" for="classifyType"></label>
      </div>
      <div class="space-4"></div>

	<div class="form-group">
        <label class="col-sm-3 control-label no-padding-right" for="goodsCode">商品编号</label>
        <div class="col-sm-6">
          <input type="text" id="goodsCode" placeholder="" class="col-xs-12 col-sm-12" required/>
        </div>
        <label class="col-sm-3 error" for="goodsCode"></label>
      </div>
      <div class="space-4"></div>

      <div class="form-group">
        <label class="col-sm-3 control-label no-padding-right" for="goodsName">商品名称</label>
        <div class="col-sm-6">
          <input type="text" id="goodsName" placeholder="" class="col-xs-12 col-sm-12" required/>
        </div>
        <label class="col-sm-3 error" for="goodsName"></label>
      </div>
      <div class="space-4"></div>

      <div class="form-group">
        <label class="col-sm-3 control-label no-padding-right" for="goodsSum">商品总量</label>
        <div class="col-sm-6">
          <input onkeyup="if(event.keyCode !=37 && event.keyCode != 39)value=value.replace(/\D/g,'')" type="text" id="goodsSum" placeholder="" class="col-xs-12 col-sm-12" required/>
        </div>
        <label class="col-sm-3 error" for="goodsSum"></label>
      </div>
      <div class="space-4"></div>

      <div class="form-group">
        <label class="col-sm-3 control-label no-padding-right" for="goodsRemainNum">商品库存量</label>
        <div class="col-sm-6">
          <input onkeyup="if(event.keyCode !=37 && event.keyCode != 39)value=value.replace(/\D/g,'')" type="text" id="goodsRemainNum" placeholder="" class="col-xs-12 col-sm-12" required/>
        </div>
        <label class="col-sm-3 error" for="goodsRemainNum"></label>
      </div>
      <div class="space-4"></div>

      <div class="form-group">
        <label class="col-sm-3 control-label no-padding-right" for="goodsIntegral">商品兑换积分</label>
        <div class="col-sm-6">
          <input onkeyup="if(event.keyCode !=37 && event.keyCode != 39)value=value.replace(/\D/g,'')" type="text" id="goodsIntegral" placeholder="" class="col-xs-12 col-sm-12" required/>
        </div>
        <label class="col-sm-3 error" for="goodsIntegral"></label>
      </div>
      <div class="space-4"></div>

      <div class="form-group">
        <label class="col-sm-3 control-label no-padding-right" for="goodsDetail">商品描述</label>
        <div class="col-sm-6">
          <textarea type="text" id="goodsDetail" placeholder="" class="col-xs-12 col-sm-12"></textarea>
        </div>
        <label class="col-sm-3 error" for="goodsDetail"></label>
      </div>
      <div class="space-4"></div>

      <div class="form-group">
        <label class="col-sm-3 control-label no-padding-right" for="goodsType"> 热门</label>
        <div class="col-sm-6">
          <select class="col-xs-12 col-sm-12" id="goodsType">
            <option value="0">否</option>
            <option value="1">是</option>
          </select>
        </div>
        <label class="col-sm-3 error" for="goodsType"></label>
      </div>
      <div class="space-4"></div>

    </form>
  </div>
</div>

<div class="space-8"></div>
<div id="pairs" class="pairs"></div>
<div class="space-4"></div>
<div class="row">
  <div class="col-xs-12">
    <form action="javascript:void(0);" class="form-inline">
      <div class="col-sm-9"></div>
      <div class="col-sm-3">
        <button id="addPair" class="btn btn-sm btn-success">
          <i class="ace-icon fa fa-plus white bigger-120"></i>添加数据项
        </button>
      </div>
    </form>
  </div>
</div>

<div class="row">
	<div class="uploader-container">
		<!--头部，相册选择和格式选择-->
		<div class="uploader">
			<div class="queueList center center-block clearfix">
				<div class="webuploader-pick" id="webuploader-pick-focus">点击选择积分商品焦点图</div>
				<div class="hr"></div>
				<ul class="imgslist imgslist-focus">
				</ul>
			</div>
		</div>
	</div>
	<div class="uploader-container">
		<!--头部，相册选择和格式选择-->
		<div class="uploader">
			<div class="queueList center center-block clearfix">
				<div class="webuploader-pick" id="webuploader-pick-detail">点击选择积分商品详情图</div>
				<div class="hr"></div>
				<ul class="imgslist imgslist-detail">
				</ul>
			</div>
		</div>
	</div>
</div><!-- /.row -->

<div class="space-8"></div>

<div class="col-xs-12">

  <div class="form-actions center">
    <button class="btn btn-success" id="add">
      <i class="ace-icon fa fa-check"></i>
      提交
    </button>
    <a href="#page/store/goods/list">
      <button class="btn btn-primary">
        <i class="ace-icon fa fa-reply align-top bigger-125"></i>
        取消
      </button>
    </a>
  </div>

</div>

<!-- page specific plugin scripts -->

<script src="../public/javascripts/scripts/store/goods/add.js"></script>
